package com.aken.imdemo.net;

import com.aken.imdemo.model.LoginData;
import com.aken.imdemo.model.ReceivedLiveHistory;
import com.aken.imdemo.model.SendMessageCallbackData;

import retrofit2.Call;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface ApiService {
    String HOST = "https://apptest.yj81.com/";

    @POST("app_api/v22/user/login?")
    Call<LoginData> login(@Query("username") String name, @Query("password") String password);

    @POST("app_api/v22/club/chat_message_list?")
    Call<ReceivedLiveHistory> getLiveMessageList(@Query("chat_id") int chatID);

    @POST("app_api/v22/liveChat/sendMsg?")
    Call<SendMessageCallbackData> sendMessage(@Query("chat_id") int chatID, @Query("content") String content, @Header("token") String token);
}
